package com.fgba.express.data.mapstruct;

import com.fgba.express.core.mapstruct.BaseStruct;
import com.fgba.express.data.dto.NoticeDto;
import com.fgba.express.data.entity.Notice;
import com.fgba.express.data.search.NoticeSearch;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

/**
 * 快递员实体和快递员Model之间的对象转换
 * @author fgba
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface NoticeStruct extends BaseStruct<Notice, NoticeDto, NoticeSearch> {
    @Override
    Notice entityConvertDto(NoticeDto dto);

    @Override
    NoticeDto dtoConvertEntity(Notice entity);
}
